﻿module CharExtension

type System.Char with
        member c.ToDigit() =
                (int c) - 48